/**
 * 
 */
package com.smarthome.domain.bean;

import com.smarthome.domain.bean.base.BaseDomain;

/**
 * @author dhc
 * @date 2016年3月7日 下午11:17:15
 * @title 房屋类型
 */
public class ShBuidingType extends BaseDomain {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private Long residenceId;
	private String residenceName;
	private String name;
	private Long baseFee; // 基础费用 （元/平方米） 以分为单位
	private Long otherFee;// 其他费用（元/每月） 以分为单位
	private String remark;
	private Long sortWeight;
	
	private Double showBaseFee;
	private Double showOtherFee;

	public Long getResidenceId() {
		return residenceId;
	}

	public void setResidenceId(Long residenceId) {
		this.residenceId = residenceId;
	}

	public String getResidenceName() {
		return residenceName;
	}

	public void setResidenceName(String residenceName) {
		this.residenceName = residenceName;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Long getBaseFee() {
		return baseFee;
	}

	public void setBaseFee(Long baseFee) {
		this.baseFee = baseFee;
	}

	public Long getOtherFee() {
		return otherFee;
	}

	public void setOtherFee(Long otherFee) {
		this.otherFee = otherFee;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Long getSortWeight() {
		return sortWeight;
	}
	
	public void setSortWeight(Long sortWeight) {
		this.sortWeight = sortWeight;
	}

	public Double getShowBaseFee() {
		if(null != this.baseFee){
			showBaseFee = baseFee / 100d;
		}
		return showBaseFee;
	}

	public void setShowBaseFee(Double showBaseFee) {
		if(null != showBaseFee){
			this.baseFee = (long) (showBaseFee  * 100);
		}
		this.showBaseFee = showBaseFee;
	}

	public Double getShowOtherFee() {
		if(null != this.otherFee){
			showOtherFee = this.otherFee / 100d;
		}
		return showOtherFee;
	}

	public void setShowOtherFee(Double showOtherFee) {
		if(null != showOtherFee){
			this.otherFee = (long) (showOtherFee* 100);
		}
		
		this.showOtherFee = showOtherFee;
	}

}
